package com.define.ssh.action.admin;

import org.apache.struts2.convention.annotation.ParentPackage;

import com.define.ssh.listener.SessionListener;
import com.define.ssh.util.SystemUtil;

@ParentPackage("admin")
public class LogoutAction extends BaseAdminAction {

	private static final long serialVersionUID = 2L;

	public String logout() throws Exception {
		// 注销此次会话
		removeSession(SystemUtil.USERINFO);
		removeSession(SystemUtil.USERLOGIN);
		removeSession(SystemUtil.FUNCTIONlIST);

		removeSession(SessionListener.LISTENER_NAME);// 记录全局

		return "login";
	}

}
